package entity

import ()

type MallLink struct {
	Id int64 `gorm:"column:id;type:BIGINT;primary_key" json:"id"`

	Name string `gorm:"column:name;type:VARCHAR(255)" json:"name"`

	Desc string `gorm:"column:desc;type:VARCHAR(255)" json:"desc"`

	Price int `gorm:"column:price;type:TINYINT" json:"price"`

	ImageUrl string `gorm:"column:image_url;type:VARCHAR(255)" json:"image_url"`

	Url string `gorm:"column:url;type:VARCHAR(255)" json:"url"`

	Weight int `gorm:"column:weight;type:TINYINT" json:"weight"`

	CreatedAt int64 `gorm:"column:created_at;type:BIGINT" json:"created_at"`

	UpdatedAt int64 `gorm:"column:updated_at;type:BIGINT" json:"updated_at"`
}

func (a *MallLink) TableName() string {
	return "mall_links"
}
